﻿@model IEnumerable<loveMotorcade.web.Models.user>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Edit")
</p>
<style>
    .list1 li
    {
        background:#f6f6f6; height:48px; margin:2px;
    }
    .list1 li .orderNum
    {
        color:#fff;float:left;width:40px;font:bold 18px/40px arial ; height:40px; background:#d0d0d0; text-align:right; padding:4px;
    }
    .list1 li:hover
    {
        background:#faf7e7;
    }
    .list1 li:hover .orderNum
    {
        background:#ff6a00;
    }

</style>
<ul style=" list-style:none; padding:0px;" class="list1">
@foreach (var item in Model) { 
    <li>
        <div class="orderNum" >
            @item.order.Count()
        </div>
        <div style="float:right;width:60px;  text-align:right; padding:4px;">
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) 
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </div>
        <div style="margin-left:60px; padding-top:5px;">
            <span  class="name" style="width:360px; font-size:140%; font-weight:bold; color:#ff6a00">
                @item.name
                <span class="telphone" style="font-style:italic;font-size:90%; font-weight:100; margin-left:10px; width:90px">@item.telphone</span>
            </span>
            <span class="linkman" style="width:60px; margin-left:40px; ">@item.linkman</span>
            <span class="linkmanPhone" style="font-style:italic;width:60px">@item.linkphone</span>
        </div>
        <div style=" margin-left:60px; font-size:12px; color:#A0A0A0">
            <div class="address">@item.address</div>
        </div>
        

    </li>
}
</ul>